<template>
	<view class="viewBg">

		<view class="lineH20"></view>
		
		<view class="uni-padding-wrap uni-common-mt" v-for="(item,index) in list" :key="index">
			<view class="uni-flex uni-row">
				<view class="text">企业名称: </view>
				<view class="text">{{item.name}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">所属网格: </view>
				<view class="text">{{gridName}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">法人代表: </view>
				<view class="text">{{item.lxrName}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">联系人电话: </view>
				<view class="text">{{item.lxrPhone}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">地址: </view>
				<view class="text">{{item.address}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">行业类型: </view>
				<view class="text">{{item.industryType}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">单位类型: </view>
				<view class="text">{{item.companyType}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">环保联系人: </view>
				<view class="text">{{item.hbName}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">环保联系人电话: </view>
				<view class="text">{{item.hbMobile}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">经度: </view>
				<view class="text">{{item.longitude}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">纬度: </view>
				<view class="text">{{item.latitude}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">省: </view>
				<view class="text">{{item.addressProvince}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">市: </view>
				<view class="text">{{item.addressCity}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">区: </view>
				<view class="text">{{item.addressArea}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">机构代码: </view>
				<view class="text">{{item.jgdm}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">组织机构代码: </view>
				<view class="text">{{item.zzjgdm}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">占地面积: </view>
				<view class="text">{{item.zdmj}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">单位网站: </view>
				<view class="text">{{item.dwwz}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">对象介绍: </view>
				<view class="text">{{item.dxjs}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否重点源: </view>
				<view class="text">{{item.iszdy}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否在线监控企业: </view>
				<view class="text">{{item.iszxjkqy}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">生产状态: </view>
				<view class="text">{{item.sczt}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否固废经营单位: </view>
				<view class="text">{{item.isgfjydw}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否固费产生单位: </view>
				<view class="text">{{item.isgfcsdw}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否风险源: </view>
				<view class="text">{{item.isfxy}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">排污口是否规范化: </view>
				<view class="text">{{item.ispwkgfh}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否上市公司: </view>
				<view class="text">{{item.isssgs}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">是否所属集团公司: </view>
				<view class="text">{{item.isssjtgs}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">股票代码: </view>
				<view class="text">{{item.gpdm}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">所属集团公司名称: </view>
				<view class="text">{{item.ssjtgsmc}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">所属集团公司组织机构代码: </view>
				<view class="text">{{item.ssjtgszzjgdm}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">所属集团公司股票代码: </view>
				<view class="text">{{item.ssjtgsgpdm}}</view>
			</view>
			<view class="lineH1"></view>
			<!-- <view class="uni-flex uni-row">
				<view class="text">创建时间: </view>
				<view class="text">{{item.createTime}}</view>
			</view>
			<view class="lineH1"></view> -->
			<!-- <view class="uni-flex uni-row">
				<view class="text">修改时间: </view>
				<view class="text">{{item.updateTime}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">创建人: </view>
				<view class="text">{{item.createBy}}</view>
			</view>
			<view class="lineH1"></view>
			<view class="uni-flex uni-row">
				<view class="text">修改人: </view>
				<view class="text">{{item.updateBy}}</view>
			</view>
			<view class="lineH1"></view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				gridName:'',
				companyId: '',
				list: [],
				name: '', //企业名称
				gridId: '', //所属网格
				lxrName: '', //法人代表
				lxrPhone: '', //联系人电话
				address: '', //地址
				industryType: '', //行业类型
				companyType: '', //单位类型
				hbName: '', //环保联系人
				hbMobile: '', //环保联系人电话
				longitude: '', //经度
				latitude: '', //纬度
				addressProvince: '', //省
				addressCity: '', //市
				addressArea: '', //区
				jgdm: '', //机构代码
				zzjgdm: '', //组织机构代码
				zdmj: '', //占地面积
				dwwz: '', //单位网站
				dxjs: '', //对象介绍
				iszdy: '', //是否重点源
				iszxjkqy: '', //是否在线监控企业
				sczt: '', //生产状态
				isgfjydw: '', //是否固废经营单位
				isgfcsdw: '', //是否固费产生单位
				isfxy: '', //是否风险源
				ispwkgfh: '', //排污口是否规范化
				isssgs: '', //是否上市公司
				isssjtgs: '', //是否所属集团公司
				gpdm: '', //股票代码
				ssjtgsmc: '', //所属集团公司名称
				ssjtgszzjgdm: '', //所属集团公司组织机构代码
				ssjtgsgpdm: '', //所属集团公司股票代码
				createTime: '', //
				updateTime: '', //修改时间
				createBy: '', //创建人
				updateBy: '' //修改人
			};
		},
		onLoad(e) {
			this.gridName=e.gridName;
			this.companyId = e.data;
			this.$http.get('ac/xagrid/appCompanyService/getDetails', {
				id: this.companyId,
			}).then((res) => {
				if (res.errcode === '0') {
					let results = '[' + JSON.stringify(res.data) + ']';//转换为数组
					this.list = JSON.parse(results);
					console.log(results);
				} else {
					uni.showToast({
						title: res.errmsg,
						mask: false,
						duration: 1500
					});
				}
			});
		}
	}
</script>

<style>
	.viewBg {
		width: 100%;
		height: 100%;
	}

	.lineH20 {
		height: 20upx;
		width: 100%;
		background-color: #F7F7F7;
	}

	.lineH1 {
		height: 2upx;
		width: 100%;
		/* margin-left: 10upx; */
		background-color: #F7F7F7;
	}

	.text {
		margin: 8upx 10upx;
		padding: 0 12upx;
		height: 56upx;
		text-align: left;
		color: #777;
		font-size: 26upx;
	}
</style>
